From: Jonas Dreßler Date: Thu, 25 Feb 2021 11:06:25 +0000 (+0100) Subject: workspace: Don't create useless childBox X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~151 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5792b98f791c743b42a6fedb16295be77d4d6cb0;p=gnome-shell.git workspace: Don't create useless childBox Creating a ClutterActorBox here is superfluous, we actually create and assign a new box to this variable inside the loop. Part-of: --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index e78630df4..8a273e865 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -613,7 +613,6 @@ var WorkspaceLayout = GObject.registerClass({ const workspaceBox = new Clutter.ActorBox(); const layoutBox = new Clutter.ActorBox(); - let childBox = new Clutter.ActorBox(); const { ControlsState } = OverviewControls; const inSessionTransition = @@ -657,7 +656,7 @@ var WorkspaceLayout = GObject.registerClass({ layoutBox.set_origin(x, y); layoutBox.set_size(width, height); - childBox = workspaceBox.interpolate(layoutBox, + const childBox = workspaceBox.interpolate(layoutBox, this._stateAdjustment.value); if (windowInfo.currentTransition) {